Now that you have everything programmed and working 100%. What's that? It didn't Work! That's where testing comes into play. Many times you will complete all of the above steps and something still doesn't work. Don't get discouraged it happens to the best of us.
It is important to check the components you are integrating as you go so that when you get to the end and something does not work you have no idea where to start. If you are able to check and test things piece by piece and one piece is not working you know that something you did recently broke things.
Let's say you didn't or weren't able to troubleshoot things along the way. What now?
One thing that you can do is add a line to your program that looks like this:
System.Console.WriteLine("motor a power" + left_motor_power);
System.Console.WriteLine("turn Percent" + turn_percent);
What does this do for you? This will allow you to breakdown if the problem is with the WiiMote, Vex Kit, or your program depending on if you are getting any values for those variables.
WiiMote Problem
Your robot is not moving. The value for turn percent does not change as you turn the wiimote back and forth. This could mean a problem pairing or a problem in your code that places the value in turn_percent. Check those two places and you will more than likely find the problem.
Vex Connection Problem
Your robot is not moving and the values for the turn_percent and the motor speed are changing. Re-pair your robot to the computer and try again.
Programming Problem
More than likely you will have recieved a compile error if you have not written the program correctly. If you get a compile error check for spaces, semi-colons, and missing periods.
Testing
<-- Prev --------- Contents --------- Next -->Now that you have everything programmed and working 100%. What's that? It didn't Work! That's where testing comes into play. Many times you will complete all of the above steps and something still doesn't work. Don't get discouraged it happens to the best of us.
It is important to check the components you are integrating as you go so that when you get to the end and something does not work you have no idea where to start. If you are able to check and test things piece by piece and one piece is not working you know that something you did recently broke things.
Let's say you didn't or weren't able to troubleshoot things along the way. What now?
One thing that you can do is add a line to your program that looks like this:
System.Console.WriteLine("motor a power" + left_motor_power); System.Console.WriteLine("turn Percent" + turn_percent);What does this do for you? This will allow you to breakdown if the problem is with the WiiMote, Vex Kit, or your program depending on if you are getting any values for those variables.
WiiMote Problem
Your robot is not moving. The value for turn percent does not change as you turn the wiimote back and forth. This could mean a problem pairing or a problem in your code that places the value in turn_percent. Check those two places and you will more than likely find the problem.
Vex Connection Problem
Your robot is not moving and the values for the turn_percent and the motor speed are changing. Re-pair your robot to the computer and try again.
Programming Problem
More than likely you will have recieved a compile error if you have not written the program correctly. If you get a compile error check for spaces, semi-colons, and missing periods.
<-- Prev --------- Contents --------- Next -->